package service.impl;

import dao.SignInDao;
import dao.impl.SignInDaoImpl;
import domain.SignIn;
import service.SignInService;

import java.util.List;

public class SignInServiceImpl implements SignInService {
    private SignInDaoImpl dao=new SignInDaoImpl();
    private SignInDao.QuerySignInDaysCallBack callBack;

    public void setCallBack(SignInDao.QuerySignInDaysCallBack callBack) {
        this.callBack = callBack;
    }

    @Override
    public boolean addOne(SignIn signIn) throws Exception {
        dao.setCallBack(this.callBack);
        return dao.addOne(signIn);
    }


}
